﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;

namespace DataAccessLayer
{
    public class DBConnection
    {
       
        protected MySqlConnection con;

        public DBConnection()
        {
            try
            {
                //String str = @"server=localhost;Port=3306;database=dancingcenterdb;userid=root;password=;";
                con = new MySqlConnection();
                con.ConnectionString = "server=localhost;Port=3306;database=dancingcenterdb;userid=root;password=;";
                
            }
            catch(Exception)
            {
                throw;
            }

        }
     

    }
}
